import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/page/index/Index'
import Login from '@/page/login/Login'
import City from '@/page/city/City'
import Detail from '@/page/detail/Detail'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component:Index
    },
    {
      path: '/login',
      name: 'Login',
      component:Login
    },
    {
      path: '/city',

      name:'City',
      component:City

    },
    {
      path: '/detail',
      name:'Detail',
      component:Detail

    }
  ]
})
